<template>
  <div>
    <div class="top">
      <!-- 头部组件 -->
      <MyHeader />
      <!-- <MyHeader title="这个杀手不太冷静" /> -->

      <!-- logo组件 -->
      <MyLogo />

      <!-- MyNav -->
      <MyNav />
    </div>

    <!-- 列表组件 -->
    <!-- <MyList /> -->
    <div class="wrap11">
      <!-- 缓存组件 -->
      <!-- <keep-alive>
        <router-view v-if="$route.meta.requireAlive" />
      </keep-alive>
      <router-view v-if="!$route.meta.requireAlive" /> -->
      <transition name="fade" mode="out-in">
        <router-view />
      </transition>
    </div>
  </div>
</template>

<script>
import MyHeader from "@/components/home/MyHeader";
import MyLogo from "@/components/home/MyLogo";
import MyNav from "@/components/home/MyNav";
// import MyList from "@/components/home/MyList";
export default {
  components: {
    MyHeader,
    MyLogo,
    MyNav,
    // MyList,
  },
  // mounted() {
  //   console.log(this.$route);
  // },
};
</script>

<style lang="less" scoped>
.top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 155px;
  z-index: 99;
}
.wrap11 {
  position: fixed;
  left: 0;
  right: 0;
  top: 155px;
  bottom: 50px;
  overflow: hidden;
}

.fade-enter-active,
.fade-leave-active {
  transition: all 0.5s;
}
.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
  opacity: 0;
  transform: translateX(20px);
}
</style>
